package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProductImageTextServiceApi;
import com.lzy.product.dtos.agent.AgentProductImageTextDto;
import com.lzy.product.service.AgentProductImageTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 代理商产品图文详情
 * Created by WIN7 on 2018/1/2.
 */
@Service
public class AgentProductImageTextServiceApiImpl implements AgentProductImageTextServiceApi {

    @Autowired
    private AgentProductImageTextService agentProductImageTextService;

    @Override
    public Long insert(AgentProductImageTextDto dto) {
        return agentProductImageTextService.insert(dto);
    }

    @Override
    public Boolean update(AgentProductImageTextDto dto) {
        return null;
    }

    @Override
    public Boolean delete(Long id) {
        return null;
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }

    @Override
    public AgentProductImageTextDto findById(Long id) {
        return null;
    }

    @Override
    public List<AgentProductImageTextDto> query(AgentProductImageTextDto dto) {
        return null;
    }

    @Override
    public List<AgentProductImageTextDto> queryAgentProductImageTextByProductId(Long productId) {
        return agentProductImageTextService.queryAgentProductImageText(productId);
    }

    @Override
    public Boolean deleteByProductId(Long productId) {
        return agentProductImageTextService.deleteByProductId(productId);
    }
}
